import { imageType } from "@/types/vote";
import { uploadFile } from "@/utils/request";

export const uploadFileAPI = (data: imageType) => {
  return uploadFile<uploadResultType>({
    url: "/minio/upload", //仅为示例，非真实的接口地址
    filePath: data.url,
    name: "files",
  });
};

type uploadResultType = {
  fileUrl: string[];
};
